package pers.zh.parking.service;

import pers.zh.parking.po.ParkingLot;
import pers.zh.parking.po.ParkingSpace;

import java.util.List;

public interface ISpaceService {

    boolean batchGenerate(List<ParkingLot> lots);

    ParkingSpace getRandomFreeSpace(Integer lotId);

    boolean isFull(Integer lotId);

    List<ParkingSpace> getSpacesByLotId(int lotId);

    boolean update(ParkingSpace space);

    boolean add(ParkingSpace space);

    boolean batchDel(List<ParkingSpace> list);
}
